package com.letoken.platform.repo.admin.req.mall;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.letoken.platform.pub.req.QueryReqBase;
import com.letoken.platform.repo.mall.po.AppMallBanner;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "商城banner新增修改对象", description = "商城banner新增修改对象")
public class MallStoreBannerReq implements Serializable {




    @ApiModelProperty(name = "id", value = "新增不传 修改必传", required = true, example = "0")
    private Integer id;

    @NotBlank(message = "Banner图片链接不能为空")
    @ApiModelProperty(name = "url", value = "图片地址", required = true, example = "https://www.baidu.com/xx/xx.png")
    private String url;

    @ApiModelProperty(name = "linkUrl", value = "跳转地址", required = true, example = "https://www.baidu.com/xx/xx.html")
    private String linkUrl;

    @ApiModelProperty(name = "state", value = "显示状态 0上架 1下架", required = true, example = "0")
    private Integer state;

    @ApiModelProperty(name = "sort", value = "排序值 倒叙越大越前", required = true, example = "0")
    private Integer sort;

    @ApiModelProperty(name = "type", value = "跳转类型 0=网页 1=内部页面", required = true, example = "0")
    private Integer type;

    @ApiModelProperty(name = "background", value = "背景颜色", required = true, example = "#ffffff" )
    private String background;

}
